package com.example.interceptmybatis.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.example.interceptmybatis.annotation.Join;
import lombok.*;

import java.time.LocalDateTime;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("ts_user_info")
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class TsUserInfo extends BaseEntity {
    @TableId(type = IdType.AUTO)
    private Integer id;

    private String username;

    @Join(key = "需要加密")
    private String address;
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime creatTime;
    @TableField(fill = FieldFill.INSERT)
    private String creatBy;
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;
    @TableField(fill = FieldFill.UPDATE)
    private String updateBy;

    private Integer isDel;
}
